import { getRequestConfig } from 'next-intl/server';
 
export async function getMessages(locale: string) {
  return (await import(`../messages/${locale}.json`)).default;
}
 
export default getRequestConfig(async ({locale}) => ({
  messages: await getMessages(locale)
}));